function ccR_MinimapButton_Reposition()
	ccR_MinimapButton:SetPoint("TOPLEFT","Minimap","TOPLEFT",52-(80*cos(ccR.Var("MinimapPos"))),(80*sin(ccR.Var("MinimapPos")))-52)
end
function ccR_MinimapButton_DraggingFrame_OnUpdate()
	local xpos,ypos = GetCursorPosition()
	local xmin,ymin = Minimap:GetLeft(), Minimap:GetBottom()
	xpos = xmin-xpos/UIParent:GetScale()+70 
	ypos = ypos/UIParent:GetScale()-ymin-70
	ccR.Var("MinimapPos", math.deg(math.atan2(ypos,xpos)))
	ccR_MinimapButton_Reposition()
end